
<template tag="以下文档内容为hycli自动生成">
  <div>
  <el-dialog
    v-model="conf.visible"
    :title="title"
    draggable
    align-center="true"
    width="68%"
    :close-on-click-modal="false"

  >
    <el-tabs v-model="conf.selected">
      <el-tab-pane label="详情" name="aaaph">
<el-row :gutter="24" style="font-size: 0.7rem;">
  <el-col :span="4" class="text-right" style="min-height:26px">编号:</el-col>
  <el-col :span="8" v-text="view.design_id||'-'" style="min-height:26px" ></el-col>
  <el-col :span="12"></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">产品需求:</el-col>
  <el-col :span="8" v-text="view.prod_id_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">名称:</el-col>
  <el-col :span="8" v-html="view.name||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">负责人:</el-col>
  <el-col :span="8" v-text="view.master_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">状态:</el-col>
  <el-col :span="8" v-text="view.pdstatus_label" style="min-height:26px" :class="$js.page.colorful(view.pdstatus,'pdstatus')" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建人:</el-col>
  <el-col :span="8" v-text="view.creator_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建时间:</el-col>
  <el-col :span="8" v-text="view.create_time||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">内容:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.content+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">业务线:</el-col>
  <el-col :span="8" v-text="view.lob_id_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">初评时间:</el-col>
  <el-col :span="8" v-text="view.first_review_time||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">终评时间:</el-col>
  <el-col :span="8" v-text="view.final_review_time||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">归档时间:</el-col>
  <el-col :span="8" v-text="view.archive_time||'-'" style="min-height:26px" ></el-col>
</el-row>
      </el-tab-pane>
    </el-tabs>
    <template #footer>
      <span style="height: 60px"> </span>
    </template>
  </el-dialog>
</div>
</template>
<script>
import gantt from "@/views/cmpnts/gantt.vue"
export default {
   components: {
    gantt,
  },
  data() {
    return {
        conf:{
        visible:false,
        
        selected:"aaaph",
      },
      title:"设计任务详情",
      form:{},
      view: {
        design_id:"",
        prod_id:"",
        name:"",
        master:"",
        pdstatus:"",
        creator:"",
        create_time:"",
        content:"",
        lob_id:"",
        first_review_time:"",
        final_review_time:"",
        archive_time:"",
        },
      }
  },
  methods: {
  show_cmpnt_aaapd(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaapd.show(form)
  },
  show_cmpnt_aaapc(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaapc.show(form)
  },
  show_cmpnt_aaape(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.pd_id = (this.bcheck||[]).join(",")
    form.pdstatus = "30"
    this.$refs.cmpnt_aaape.show_aaape(form)
  },
  show_cmpnt_aaapf(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.pd_id = (this.bcheck||[]).join(",")
    form.pdstatus = "0"
    this.$refs.cmpnt_aaapf.show_aaapf(form)
  },
  show_cmpnt_aaapa(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaapa.show(form)
  },
  show_cmpnt_aaapb(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaapb.show_aaapb(form)
  },
 show(form) {
    this.conf.visible = true
    this.form = form
   let that = this;
   this.$theia.http
      .get("/ws/prod/design",form)
      .then((res) => {
        let item = Object.assign({}, res)
        item.prod_id_label = that.$theia.enum.getName("feedback_prod_req",item.prod_id)
        item.master_label = that.$theia.enum.getName("uimaster",item.master)
        item.pdstatus_label = that.$theia.enum.getName("pdstatus",item.pdstatus)
        item.creator_label = that.$theia.enum.getName("user_account",item.creator)
        item.lob_id_label = that.$theia.enum.getName("my_business_line",item.lob_id)  
        item.prod_id = (item.prod_id||"")  
        item.name = (item.name||"")
        item.create_time = that.$theia.str.dateFormat(item.create_time,'MM/dd')  
        item.content = (item.content||"")
        item.first_review_time = that.$theia.str.dateFormat(item.first_review_time,'MM/dd HH时')
        item.final_review_time = that.$theia.str.dateFormat(item.final_review_time,'MM/dd HH时')
        that.view = item
      })
      .catch((res) => {
        let code = res.response.status;
        let msg = `设计任务查询失败(${code})`;
        that.$notify.error({ title: "失败", message: msg, duration: 5000 });
      });
  },
  },
};
</script>
<style scoped>
/deep/.el-step__title{
    font-size: 0.8rem;
}
.steps{
  margin-top:8px;
  margin-bottom:  16px;
}
</style>